﻿using System;
using NH.Elateral.PipeManagement.Core.Interfaces;

namespace NH.Elateral.PipeManagement.Core
{
	public sealed class PipeStatusFormatterCsv : IPipeStatusFormatter
	{
		
		public string Format(Pipe pSource)
		{
			return String.Format("Pipe,{0},{1}",
				pSource.PipeId,
				pSource.IsOpen ? "open" : "closed");
		}

		
	}
}
